<template>
  <div class="summation-container">
    <div class="summary">
      <div class="row">
        <div class="key">商品合计：</div>
        <div class="value">￥199.00</div>
      </div>
      <div class="row">
        <div class="key">运费：</div>
        <div class="value">￥0.00</div>
      </div>
      <!-- 分割线 -->
      <div class="split-line"></div>
      <div class="row">
        <div class="key">应付总额：</div>
        <div class="value strong">￥199.00</div>
      </div>
      <div class="row">
        <div class="key">预计可返回馈金：</div>
        <div class="value">￥1.99</div>
      </div>
    </div>
    <button class="btn-pay">去付款</button>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="less" scoped>
@import "../../styles/variable.less";

.summation-container {
  align-items: flex-end;
  background-color: @bg-grey;
  border-left: 1px solid @border-color2;
  border-right: 1px solid @border-color2;
  border-bottom: 1px solid @border-color2;
  display: flex;
  flex-direction: column;
  padding: 20px 40px 40px 30px;
  .summary {
    font-size: 14px;
    width: 300px;
    .row {
      align-items: center;
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;
      .key {
        width: 120px;
        text-align: right;
      }
      .value {
        flex: 1;
        text-align: right;
        &.strong {
          color: #d4282d;
          font-size: 20px;
          font-weight: 700;
        }
      }
    }
    .split-line {
      background-color: #e8e8e8;
      width: 100%;
      height: 1px;
      margin-bottom: 20px;
    }
  }
  .btn-pay {
    background-color: @font-color-golden;
    border: 1px solid @font-color-golden;
    color: @write;
    cursor: pointer;
    font-size: 18px;
    width: 168px;
    height: 50px;
    line-height: 50px;
    margin-top: 30px;
    outline: none;
    &:hover {
      background-color: #c0ae8a;
      border: 1px solid #c0ae8a;
    }
  }
}
</style>
